//
//  TempViewController.swift
//  个人微博
//
//  Created by 一介布衣 on 16/2/26.
//  Copyright © 2016年 HUAMANLOU. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.whiteColor()
        
//        // 自定义返回按钮
//        let btn = UIButton(backImageName: nil, text: "返回", textColor: UIColor.darkGrayColor(), imageName: "navigationbar_back_withtext", fontSize: 14)
//        navigationItem.leftBarButtonItem = UIBarButtonItem(customView: btn)
//        btn.addTarget(self, action: "back", forControlEvents: .TouchUpInside)
        
        
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", style: .Plain, target: self, action: "push")
    }
    
    @objc private func push() {
        let temp = TempViewController()
        navigationController?.pushViewController(temp, animated: true)
    }
    
//    @objc private func back() {
//        navigationController?.popViewControllerAnimated(true)
//    }
  
}
